package java68_5;

public class ScoreTest {
    public static void main(String[] args) {
        Student s=new Student();
        s.name="岳不群";
        s.database=99;
        s.csharp=67;
        s.java=61;
        System.out.println("学生信息如下:");
        s.show();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        Teacher teacher=new Teacher();
        teacher.name="左冷禅";
        float avg=teacher.getAvg(s);
        System.out.println(">>>>>>>>>>>>>>>>>>>>>计算完成>>>>>>>>>>>>>>>>>");
        s.show();
        System.out.println(s.name+"平均分是"+avg);
    }
}
